#ifndef _MAIN_H_
#define _MAIN_H_

#include "def.h"

	#ifndef		_MAIN_GLOBAL_
		#define		MAIN_GLOBAL		extern		   
	#else
		#define		MAIN_GLOBAL	
	#endif 
	
#define _DI() EIC_IRQ_DisableINT_All()
#define _EI() EIC_IRQ_EnableINT_All()
	
	
MAIN_GLOBAL U32 EIC_IRQ_DIScnt;
MAIN_GLOBAL void AllSystemInit(void);
MAIN_GLOBAL	void EIC_IRQ_DisableINT_All(void);
MAIN_GLOBAL	void EIC_IRQ_EnableINT_All(void);		
#endif
		
